package main

/*

func HandlerGetUserSearchByID(ev *nagt.EvDataEntity, headMsg *public.HeadMsg, bodyBuf []byte) {
	logger.Info("用户请求以ID来进行搜索用户(包含好友和非好友)")
	info := new(packet.CStReqGetUserSearchByID)
	err := proto.Unmarshal(bodyBuf, info)
	if err != nil {
		logger.Error("HandlerGetPlaceManagement  Unmarshal error", err.Error())
		return
	}

	if !public.CheckUserID(info.UserID, ev.Extends) {
		logger.Error("用户uid与连接会话不一致")
		return
	}

	platID, ok := public.GetPlatIDBySSid(ev.Extends)
	if !ok {
		logger.Error("用户登录获取平台ID错误", info.UserID, platID)
	}


	//回应数据
	ackMsg := new(packet.SStAckGetUserSearchByID)
	ackBuf, err := proto.Marshal(ackMsg)
	if err != nil {
		logger.Error("用户请求获取聊天室/群组的管理级别信息回应protobuf封包错误", err.Error())
		return
	}

	allBuf := public.GetMsgBinBuff(uint32(packet.ServerBaseChatEnum_SAckGetPlaceManagement),
		headMsg.GameID,
		headMsg.SeqID,
		headMsg.Ver,
		ackBuf)
	GetUpEvtHandler().SendData(public.STC_TRA_GameToClient, ev.SrcType, ev.SrcSubj, ev.Extends, allBuf)
}

*/
